#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;

const ll N = 3e5 + 10, INF = 0x3f3f3f3f;

ll n, q;
ll a[N], sum[N];

ll find(ll k)
{
    ll l = 0, r = n;
    while (l < r) {
        ll mid = (l + r + 1) >> 1;
        if (a[mid] < k) l = mid;
        else r = mid - 1;
    }
    return l;
}

void solve()
{
    cin >> n >> q;
    ll mx = 0;
    for (ll i = 1;i <= n;i++) { cin >> a[i];mx = max(mx, a[i]); }
    sort(a + 1, a + n + 1);
    for (ll i = 1;i <= n;i++) sum[i] = sum[i - 1] + a[i];

    while (q--) {
        ll b;cin >> b;
        ll p = find(b);
        if (b > mx) cout << -1 << '\n';
        else cout << sum[p] + (n - p) * (b - 1) + 1 << '\n';
    }
}

signed main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
#define ONLINE_JUDGE
#ifndef ONLINE_JUDGE
    std::istringstream in(R"()");
    std::cin.rdbuf(in.rdbuf());
#endif
    ll T = 1;
    //cin>>T;
    for (ll i = 1;i <= T;i++) {
        solve();
    }
}